/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package util;
//import control.Control;
import java.util.*;
/**
 *
 * @author niquefa
 */
public class InsertProblem
{
    //private static Control control = Control.getInstance();
    public static void main( String args[] )throws Exception
    {
        //insertProblem("heatwv",10,3,2);
        //insertProblem("diet",11,4,2);
    }
    /*
    private static void insertProblem(String problemName , int testcaseCount , int difficulty , int time )throws Exception
    {
        control.saveProblem(problemName, toString( CompileAndExecuteAllTestCase.readFile(problemName+"/"+problemName+".txt") ), difficulty, time, new String[]{"Graph Theory"});
        for (int i = 1; i <= testcaseCount; i++)
        {
            Vector<String> in = CompileAndExecuteAllTestCase.readFile(problemName+"/"+problemName+"."+i+".in");
            Vector<String> out = CompileAndExecuteAllTestCase.readFile(problemName+"/"+problemName+"."+i+".out");
            control.saveTestCase(toString(in), toString(out),problemName);
        }        
    }
    */
    private static String toString( Vector<String> vector )
    {
        String ret = "";
        for (String string : vector)
        {
            if( ret.length() != 0 )ret += "\n";
            ret += string;
        }
        return ret;
    }
    private static void ver( Vector<String> vector )
    {
        for (String string : vector)
            System.out.println(string);
    }
}
